    var active_li = GetQueryString('active_li');
    var active_span = GetQueryString('active_span');
    var vm = new Vue({
        el: '#app',
        data: {
            active_li: active_li ? active_li : 1,
            active_span: active_span ? active_span : 11,
            block: 'block',
            none: 'none',
        },
        methods: {
            handleLi: function (li, span) {
                this.active_li = li;
                this.active_span = span;
            },
            handleClick: function (li, span) {
                this.active_li = li;
                this.active_span = span;
            }
        }
    })
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]); return null;
    }
    function paramss(keyname) {
        var params = {
            'apiKey': keyname,
            'deviceType': 'DIC_DEVICE_TYPE_1',
            contentType: "application/json;charset=utf-8",
            datatype: 'json'
        };
        return params;
    }
    $(function () {
        //公司简介
        ajax('post', '/d_easy/deasy/api', paramss('api_post_getCompanyProfiles'), 'json', function (data) {
            $("#A_one .content_one").append(data.companyProfile.content);
            $("#A_one .content_one h2.A_one_o").html(data.companyProfile.title_name);
        })
        //战略发展
        ajax('post', '/d_easy/deasy/api', paramss('api_post_getStrategicDevelopments'), 'json', function (data) {
            $("#A_two .content_one").append(data.strategicDevelopment.content);
        })
        //帮助中心
        ajax('post', '/d_easy/deasy/api', paramss('api_post_getHelpCenters'), 'json', function (data) {
            $("#B_one .content_one").append(data.helpCenter.content);
        })
        //递送问题 
        ajax('post', '/d_easy/deasy/api', paramss('api_post_getExpressQuestions'), 'json', function (data) {
            $("#B_two .content_one").append(data.expressQuestion.content);
        })
        //温馨提示
        ajax('post', '/d_easy/deasy/api', paramss('api_post_getWarmTips'), 'json', function (data) {
            $("#B_three .content_one").append(data.warmTips.content);

        })
        //合作伙伴
        ajax('post', '/d_easy/deasy/api', paramss('api_post_getAllPartners'), 'json', function (data) {
            var partnerslist = data.partnerslist;
            for (var i = 0; i < partnerslist.length; i++) {
                if (partnerslist[i].partner_name == "UPS") {
                    $("#C_one .content_one").append(partnerslist[i].content);
                }
                if (partnerslist[i].partner_name == "FedEx联邦快递") {
                    $("#C_two .content_one").append(partnerslist[i].content);
                }
                if (partnerslist[i].partner_name == "TNT物流") {
                    $("#C_three .content_one").append(partnerslist[i].content);
                }
                if (partnerslist[i].partner_name == "DHL国际物流") {
                    $("#C_four .content_one").append(partnerslist[i].content);
                }
                if (partnerslist[i].partner_name == "EMS物流") {
                    $("#C_five .content_one").append(partnerslist[i].content);
                }
            }
        })
        //联系我们
        ajax('post', '/d_easy/deasy/api', paramss('api_post_getContactUs'), 'json', function (data) {
            $("#D_one .content_one").append(data.contactUs.content);
        })
    })